package Demo1;

public class Manager extends Staff{
   public String managerType;

   public Manager(String staffID, String staffName, char gender, int seniority,
                  double baseSalary, double maritPay, String managerType) {
      super(staffID, staffName, gender, seniority, baseSalary, maritPay);
      this.managerType = managerType;
   }

   @Override
   public String toString() {
      return "Manager{" +
              "managerType='" + managerType + '\'' +
              ", staffID='" + staffID + '\'' +
              ", staffName='" + staffName + '\'' +
              ", gender=" + gender +
              ", seniority=" + seniority +
              ", baseSalary=" + baseSalary +
              ", maritPay=" + maritPay +
              '}';
   }
}
